<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>资源配置文件</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
  	<form action="<%=basePath %>res/updateResProfile.action" method="post">
  		<table>
  			<tr>
  				<td>
  					<table>
  						<c:choose>
  							<c:when test="${empty keys}">
  								<tr><td></td></tr>
  							</c:when>
  							<c:otherwise>
  								<c:forEach items="${keys}" var="key">
  									<tr height="30px"><td>${key }：</td></tr>
  								</c:forEach>
  							</c:otherwise>
  						</c:choose>
  					</table>
  				</td>
  				<td>
  					<table>
  						<c:choose>
  							<c:when test="${empty values}">
  								<tr><td></td></tr>
  							</c:when>
  							<c:otherwise>
  								<c:forEach items="${values}" var="value">
  									<tr><td height="30px"><input name="values" value="${value }" style="width:200px;" /></td></tr>
  								</c:forEach>
  							</c:otherwise>
  						</c:choose>
  					</table>
  				</td>
  			</tr>
  			<tr>
  				<td><input type="submit" name="submit" value="修改" /></td>
  			</tr>
  		</table>
  	</form>
  </body>
</html>
